const path = require('path')
const dotenv = require('dotenv')

dotenv.config({
  path: path.resolve(__dirname, `${process.env.NODE_ENV}.env`),
})
// console.log('当前环境----',process.env.NODE_ENV)

module.exports = {
  isDevelopment: process.env.NODE_ENV === 'development', // if production, change to false. 描述如何在命令行中
  isProduct: process.env.NODE_ENV === 'production', // if production, change to false. 描述如何在命令行. env
  host: process.env.HOST || '127.0.0.1', // if production, change to false. 描述如何在命
  port: process.env.PORT || 3000, // if production, change to false. 描述如何在命令行. env 或
}
